<template>
      <div class="home-week">
          <div class="week-top">
              <p>周末去哪儿</p>
          </div>
          <ul class="week-xq">
             <li class="week-xq-main" v-for="(item,index) in week" :key="item.id">
                <img :src="item.imgUrl"/>
                <div class="week-xq-text">
                    <p>{{item.t1}}</p>
                    <p>{{item.t2}}</p>
                </div>
             </li>
          </ul>
      </div>
</template>

<script>
    export default {
        name: "Week",
        props: {
          week: {
             type: Array
          }
        },
        data (){
           return {
             // weekList:[
             //   {id:"001",weekUrl:"http://img1.qunarzz.com/sight/source/1811/f3/86173f863bef61.jpg_r_640x214_52b003ac.jpg",brief:"京城周末撒欢",introduce:"在帝都过周末，不仅仅是城中游！"},
             //   {id:"002",weekUrl:"http://img1.qunarzz.com/sight/source/1811/7e/476589267ebb41.jpg_r_640x214_bf599709.jpg",brief:"京城溜娃必去",introduce:"德治体美劳全面发展的亲子日，这些地方该去看看..."},
             //   {id:"003",weekUrl:"http://img1.qunarzz.com/sight/source/1505/aa/7baaf8a851d221.jpg_r_640x214_1431200f.jpg",brief:"帝都必打卡",introduce:"来北京必去的几个景点非这些地方莫属"},
             //   {id:"004",weekUrl:"http://img1.qunarzz.com/sight/source/1505/9e/21df651e19af5d.jpg_r_640x214_3ea5bb38.jpg",brief:"寻找北京的皇城范儿",introduce:"数百年的宫廷庙宇，至今依旧威严霸气"},
             //   {id:"005",weekUrl:"http://img1.qunarzz.com/sight/source/1505/9e/21df651e19af5d.jpg_r_640x214_3ea5bb38.jpg",brief:"学生最爱的博物馆",introduce:"周末干嘛？北京很多博物馆已经免费开放啦"}
             // ]
           }
        }
    }
</script>

<style lang="stylus" scoped>
   .home-week
      height: 100%
      .week-top
         width: 100%
         height : .4rem
         line-height : .4rem
         background : #cacaca
         p{
           margin-left : .10rem
         }
      .week-xq
          .week-xq-main
             height : 1.50rem
             padding-bottom : .35rem
             img{
               width:100%
             }
             .week-xq-text
                height .20rem
                margin-left : .10rem
                p{
                   margin : .05rem 0rem
                   font-size : .18rem
                }
                p:last-of-type{
                   font-size : .12rem
                }
</style>
